package com.xyc.manager.permission.service;


import com.xyc.manager.permission.bean.ParentTreeBean;
import com.xyc.manager.permission.bean.SysRole;

import java.util.List;

public interface PermissionService {
    public List<ParentTreeBean> queryParentTreeBeans(String account);

    public List<ParentTreeBean> queryRolePermissionByRoleCode(String roleCode);

    /**
     *  取消权限
     * @param fid 中间表的主键
     */
    public void cancelPermission(Integer fid, String roleId) throws Exception;
    //添加权限
    public void addPermission(String roleId, String moduleCode) throws Exception;
    //根据moduleCode和roleId查询fid
    public Integer queryFidByModuleCodeAndRoleId(String roleId, String moduleCode);

    public List<SysRole> queryRoleList();

}
